import App from './App'
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// $cache   缓存
import cache from '@/common/cache'
Vue.prototype.$cache = new cache()

import commUtil from "@/common/common";
Vue.prototype.$comm = commUtil

// 权限判断
import permision from '@/common/permission'
Vue.prototype.$permision = permision

// 引入组件
import loading from "@/components/loading.vue";

// 公共js方法
import tools from '@/common/tools'
Vue.prototype.$tools = tools;

import bus from '@/components/bus.js'
Vue.prototype.$bus = bus;

//信息
import configText from './common/config-text.js'
Vue.prototype.configText = configText;


import hxNavbar from "./components/hx-navbar/hx-navbar"
Vue.component('hx-navbar', hxNavbar)

// 注册全局组件
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"

Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)

import request from '@/common/requst.js' //引进requst方法
Vue.prototype.request = request;
Vue.config.productionTip = false

import api from '@/common/api'
Vue.prototype.$api = api;
// vuex
// import store from '@/common/store'
// Vue.prototype.$store = store
// #ifndef VUE3
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
